﻿package model.drawPanel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Vector;

import model.drawPanel.entitys.Entity;

public class DrawOrder extends Order implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 101250136L;
	public final static int ADD = 1,
					  DELETE = 2,
					  CHANGE_SIZE = 3,
					  MOVE = 4;
	protected int id;//-1标示是分隔符，标示一次操作结束，一般以鼠标松开为基准
	protected int drawType = 1;//0是pen 和rubber 1是模型
	public DrawOrder(int id) {
		super();
		this.id = id;
	}
	
	public void execute(ArrayList<Entity> entitylist){
		
	}

	public void undo(ArrayList<Entity> entitylist){
		
	}
	public void change(int x, int y){
		
	}

	public int getDrawType() {
		return drawType;
	}

	public void setDrawType(int drawType) {
		this.drawType = drawType;
	}

	public int getId() {
		return id;
	}
	

}